<script>
export default {
	globalData: {
		onLocationData: undefined,
		BluetoothData: []
	},
	onLaunch: function () {
		console.log('App Launch');
	},
	onShow: function () {
		console.log('App Show');
		uni.setKeepScreenOn({
			keepScreenOn:true
		})
	},
	onHide: function () {
		console.log('App Hide');
	},
	methods: {
		watch: function (method, istr, it = {}) {
			var obj = this.globalData;
			Object.defineProperty(obj, istr, {
				configurable: true,
				enumerable: true,
				set: function (value) {
					this._consumerGoodsStatus = value || '';
					method(it, value);
				},
				get: function (value) {
					return this._consumerGoodsStatus;
				}
			});
		},

		// 获取蓝牙
		Bluetoothstart: function () {
			uni.startBluetoothDevicesDiscovery({
				success: (res) => {}
			});
		}
	}
};
</script>

<style>
/*每个页面公共css */
</style>